package cn.stylefeng.guns.sys.modular.system.mapper;

import cn.stylefeng.guns.sys.modular.system.entity.BtyMdYydz;
import cn.stylefeng.guns.sys.modular.system.model.params.BtyMdYydzParam;
import cn.stylefeng.guns.sys.modular.system.model.result.BtyMdYydzResult;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 门店营业额报备表 Mapper 接口
 * </p>
 *
 * @author 
 * @since 2021-12-03
 */
public interface BtyMdYydzMapper extends BaseMapper<BtyMdYydz> {

    /**
     * 获取列表
     *
     * @author 
     * @Date 2021-12-03
     */
    List<BtyMdYydzResult> customList(@Param("paramCondition") BtyMdYydzParam paramCondition);

    /**
     * 获取map列表
     *
     * @author 
     * @Date 2021-12-03
     */
    List<Map<String, Object>> customMapList(@Param("paramCondition") BtyMdYydzParam paramCondition);

    /**
     * 获取分页实体列表
     *
     * @author 
     * @Date 2021-12-03
     */
    Page<BtyMdYydzResult> customPageList(@Param("page") Page page, @Param("paramCondition") BtyMdYydzParam paramCondition, @Param("bhList") List<String> bhList);
    List<BtyMdYydzResult> customPageList(@Param("paramCondition") BtyMdYydzParam paramCondition, @Param("bhList") List<String> bhList);

    /**
     * 获取分页map列表
     *
     * @author 
     * @Date 2021-12-03
     */
    Page<Map<String, Object>> customPageMapList(@Param("page") Page page, @Param("paramCondition") BtyMdYydzParam paramCondition);

    int getId(String code);

    int getCon(String code);

    void updateByCode(BtyMdYydz mdYydz);

    List<String> bhList(@Param("name") String name);

    BtyMdYydz getById(Integer yydzId);

    List<Map> getCity();

    void updateCity(@Param("list") List<Map> list);

    /**
     * 获取城市列表
     * @param list
     * @return
     */
    List<Map> cityList(@Param("list") List<String> list);

    List<Map> exportList(@Param("date") String date, @Param("bhList") List<String> bhList);
}
